package com.ranshiyan.service;

import com.github.pagehelper.PageInfo;
import com.ranshiyan.entity.Article;
import com.ranshiyan.entity.Comment;

public interface ArticleService {
	PageInfo list(int page);
	
	Article getById(int id);
	
	//评论的内容，文章的id,用户的id,评论的内容
	int addComment(int articleId,String content,Integer userId);
	
	//根据文章的id 获取文章下全部的id
	PageInfo<Comment> listComment(int articleId,int page);
}
